# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-qtawesome
_pkgorig=qtawesome
pkgver=1.3.1
pkgrel=1
pkgdesc="Iconic fonts in PyQt and PySide applications"
url="https://github.com/spyder-ide/qtawesome"
arch="noarch"
license="MIT"
depends="python3 py3-qtpy"
checkdepends="py3-pytest py3-pytest-cov py3-pytest-qt py3-qt5 xvfb-run"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/spyder-ide/qtawesome/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz
	no-tests.patch"
builddir="$srcdir/qtawesome-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	xvfb-run -a python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
906b90d1b5d58c08475e07d35d10cfb74844573d34877b9bb12c55c7cbf9a8e3d7fc76d9116dafd2900f6b6a578c12746de7f8e6cfbc9a602a079c7a3f7a9904  qtawesome-1.3.1.tar.gz
33cac839842a89d5680ee555526cec9177b20ba5227d9934f44673b481c688039c22bf3c8ce8fd18ef85d05143ea5c7f87eaacbc4861e3a9cbb69ed068b14b9f  no-tests.patch
"
